import request from '@/utils/request'

export const addArticleAPI = fd => {
  return request.post('/my/article/add', fd)
  //   return request({
  //     method: 'POST',
  //     url: '/my/article/add',
  //     data: fd
  //   })
}
// export const getArticleAPI = () => {
//   return request.get('/my/article/list')
// }
// 获取文章列表数据
export const getArticleAPI = params => {
  return request({
    method: 'GET',
    url: '/my/article/list',
    params: params
  })
}
